package com.yanqu.road.entity.log.curio;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_curio_item_get", autoSave = true, dataUpload = true, eventName = "treasure_lock", desc = "藏品获得", uploadCk = true)
public class LogCurioItemGet extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(dataAttribute = "treasure_id", desc = "藏品id")
    private int itemId;

    @FieldTypeAnnotation(dataAttribute = "treasure_quality", desc = "品质")
    private int quality;

    @FieldTypeAnnotation(dataAttribute = "treasure_belong", saveJson = true, desc = "所属套装")
    private List<Integer> belongSuitId;

    @FieldTypeAnnotation(dataAttribute = "treasure_addscore",desc = "增加分数")
    private long addScore;

    public LogCurioItemGet(long userId, int itemId, int quality, List<Integer> belongSuitId, long addScore) {
        this.userId = userId;
        this.itemId = itemId;
        this.quality = quality;
        this.belongSuitId = belongSuitId;
        this.addScore = addScore;
    }

    public long getUserId() {
        return userId;
    }

}
